package com.bw.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class ProductStats {
    String stt;//窗口起始时间
    String edt;  //窗口结束时间

    Long product_sku_id; //sku编号

    Long product_spu_id; //spu编号

    String product_spu_name;//spu名称

    Long sku_num;

    Long region_id;

    String region_name;

    @Builder.Default   //支付金额
    BigDecimal amount = BigDecimal.ZERO;


    String create_time;


    @Builder.Default
    Long order_ct = 0L; //订单数

    @TransientSink
    @Builder.Default
    Set OrderIdSet = new HashSet();//用于退款支付订单数

    Long ts; //统计时间戳
}
